

class Helper_getDataFromBlock(object):
    instance = None       
    
    def __new__(cls, *args, **kargs): 
        if cls.instance is None:
            cls.instance = object.__new__(cls, *args, **kargs)
        return cls.instance
    
        
    def getDataFromBlocks(self,aDisk,aListOfBlocks):
        aPartsList = []
        for i in range(len(aListOfBlocks)):
            aPartsList.append(aDisk.readDataBlock(aListOfBlocks[i])) 
            
        return aPartsList